import request from '@/utils/request'

// 查询答案列表
export function listAnswer_detail(query) {
  return request({
    url: '/admin/answer_detail/list',
    method: 'get',
    params: query
  })
}

// 查询答案详细
export function getAnswer_detail(id) {
  return request({
    url: '/admin/answer_detail/' + id,
    method: 'get'
  })
}

// 新增答案
export function addAnswer_detail(data) {
  return request({
    url: '/admin/answer_detail',
    method: 'post',
    data: data
  })
}

// 修改答案
export function updateAnswer_detail(data) {
  return request({
    url: '/admin/answer_detail',
    method: 'put',
    data: data
  })
}

// 删除答案
export function delAnswer_detail(id) {
  return request({
    url: '/admin/answer_detail/' + id,
    method: 'delete'
  })
}

// 导出答案
export function exportAnswer_detail(query) {
  return request({
    url: '/admin/answer_detail/export',
    method: 'get',
    params: query
  })
}